package com.hundun.vision.biz.service;

import org.ta4j.core.BarSeries;
import org.ta4j.core.Strategy;
import org.ta4j.core.Trade;

import java.math.BigDecimal;

/**
 * @author ：RuoChen
 * @date ：16:24 2021/6/14
 * @description：回测服务类
 */
public interface BackTestService {
    /**
     * 回测
     *
     * @param strategy
     * @param barSeries
     * @param symbol
     * @param interval
     * @param stopLoss
     */
    void test(Strategy strategy, Trade.TradeType tradeType, BarSeries barSeries, String symbol, String interval, BigDecimal stopLoss);
}
